package com.ghck.server;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;

import com.ghck.server.config.UserProfile;

public class ServletInitializer extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {

		if (System.getProperty("spring.profiles.active") == null) {
			System.setProperty("spring.profiles.active", UserProfile.INTG);
		}
		return application.sources(GhckAplication.class);
	}
}
